package com.ostrich.system.analysis;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.stereotype.Component;

@Component
public class FormulaAnalysisDao extends JdbcDaoSupport {

	/***
	 * 根据sql执行返回一个list对象集合，集合内容为map
	 * 
	 * @param sql
	 * @return
	 */
	public List<Map<String, Object>> queryBysql(String sql,Object[] arg) {
		return this.getJdbcTemplate().queryForList(sql,arg);
	}

}
